updating Response codes in tests, updated tests to handle uniqueness constraints