adding logging and tests using logme