refactor model add tests for POST and DELETE not sure if code is broken or my computer is broken