Mocked public api tests