Added test for getprinter method, fix error when response is None