THRIFT-847 Test Framework harmonization across all languages

Haskell tests added to test.py and test.sh
1) The pattern match case on line 204/217 should be integrated into the `case` statement here.
2) You match a couple of strings, but a non-exhaustive pattern match error will be thrown if none of these strings match.  You should add a default case with the wildcard operator (`_`) that evaluated to `Nothing` so that if you enter an unsupported flag it will print the help message