test and logger