add test support and test it.