added test for getlogs