Fixed issue where test was printing to console