some test fixes and gemspec ready to go