added spec tests