a little bit of changes to make the code more testable
testing the private method maskToRegex
configurations for Travis CI