Added a double check for Node modules and extended the check in should mock #106