Tests should be run in `%check` section not in `%build`.