Add tests as specified in #14

This PR adds tests for controller, route, model and component; the places t gets injected in so far.

Note that this PR also fixes a bug. T didn't get injected in model.
I would prefer to have unit tests instead of an acceptance test for the dependency injection.