Add additional tests and code in the _contains block to prevent the exception that happens when an undefined variable. This exception causes grunt-jasmine-node to fail