restructure kwc test controller to make it reusable in other repositories