added a test for discoverModules
added a class to mock "serialport"