tests.js now uses listener module rather directly than requiring live server