tests: use expect syntax