adding tests for POSTs in the API