adding check if test fails to not write success or failure