refactored API tests into separate files for each API resource