Updating gemspec and fixing compiler warnings
Adding tests