fix test and session listeners parsing