Changing test to write out to console