this is the test for the api it should be in its own file outside the server