use osfamily instead of operatingsystem
add spec tests