Add test cases and ProducttypeDao