add and fix formatx test cases