unit test for backend service