Added rest of API endpoint tests, fixed #11.