fixed ugly curry in tests
fixed crash on unknown long option