Added printing functions for debugging purposes. When running the tests,
no stderr will be printed unless there is a failure.