Added unit tests for new printing features