Add unit tests for the APIResponse class