Adding configured to module.exports in main. Adding tests to check those...

... exports