Added unittest templated.