swr-test: fix division by 0