updated all tests to use expect