fixing api tests