checking equality of exports and module.exports