Fix ability to specify form via class name.

According to documentation we should be able to specify the form class directly, but this is not the case, unless the form is also registered in the form factory. This PR fixes this, but also highlights how much mocking overhead comes with testing the resource controller.