updated tests to use expect
updated tests to use expect