refactored game api tests