tests: added listen test and removed compile warnings when compiling gtest