got rid of die statements for all the tests; instead displaying output in result.html