added a bunch of tests. All pass

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>