add Head Factory
add Head Factory test class