Remove duplicate error key
Test for error on bad request