Fix memory leak
Fix
Fixed memory corruption under non-ARC
#35 First pass at unit tests