Add tests for PreferTag and LdpPreferTag