Refactored tests to be distro-specific