test user-defined WritableComparable

test user-defined WritableComparable