Fixed discovery api tests