fixed failing spec tests