implemented api tests and methods, updated gemspec