add logger and some method tests