Add test coverage for rpm --architecture flags

This covers a code from #676