made the testing code more verbose