Prefer `expect` over `assert` for testing

Replaces `assert` with `expect` in tests.  This commit covers all tests
in acceptance and helper folders as specified on #2797.