add gem define, tests; bump to 0.0.2