Fixes printing errors

Also adds a hacker-school-inspired unit test.