two basic tests for api should now be written correctly