Change spec to use expect syntax