#100 Readd checks in test for success and failure calls of AJAX, merge an "else" and an "if else" which did same thing