Added test to ensure listen is called