[TEST] fix random preference string tests to accomodate for the new more strict preference type