corrected test to test the actual response and not the database entry