Added tests for accepting/declining API requests.