Explicitly return Unit value in some tests to prevent scalac warnings
about discarding non-Unit values.