sets up test framework for factories and controllers