fix compile error.
add test.