Change exit code when a given pattern is invalid
Write functional test
Update configuration for coveralls