configure testing framework; refactor basic controller testing