was getting logger undefined error during tests