Fix gemspec & test
Make test suite more reliable
Use rake task to build gems