add test for expect