adding spec tests