changes to tests so that they return error messages to results.html