Add several method to fanVector, add test code