build and test controllers