Move lib specs to spec/lib