More defineParams test and add extend tests