Adding initial test case generator
Make tests_gen unit-testable.
Adding unit test for sample usage. Failing though. :(