Print function in tests