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.
These changes are outside the context of this PR.