Updated tests that were still using the old test api endpoint functions