new test cases and code refactoring

:+1: Marco Acierno, Marc-Andre thanks for review

http://codereview.stackexchange.com/questions/59007/simple-wildcard-pattern-matcher-in-java