remove useless code
add test file