Testing custom API endpoint with class dependency

Testing custom API endpoint with class dependency