Avoid hardcoded magic number in test teardown.

cc @senny