changing api tests to use a fake manager.