add tests of main module
change module.exports to be an object