add any_nonser test cases and fix bugs.