moved specs to spec/lib