added test for listener per result, and create listener for input