Add some specs for more coverage

Also skip code that only runs on ruby 1.8 from the coverage testing.
Fix some warnings