Add hasPrinter unit test