Added debugging stuff to the test