added tests for the factory and fixed bugs it found
added more tests and fixed more bugs
Merge branch 'master' of https://github.com/bigelephant/input-validator