catching require exception if module doesn't exist and added test