added the test that fails with the min length less than 2
fixed the problem with the xuap that requires min. length of 2 (not 1)