Fix the gemspec, add License, test the register method

- Fix gemspec
- Add license
- Check the register method in the spec file
Filter :-)