updated specs to use expect syntax