Fixed unit test for print function, previous test didn't actually test anything