renamed tests, changed they way errors are returned and made them the correct status codes