use random seed and print random seed if test fails