Updated .travis.yml and fixed code allowing build to pass