Added mocked api tests