fix failing spec tests