Spin off helper related tests and test helper directly.
Add a testcase to make sure injecting a DateTime object still works.
display an error message instead of failing with a PHP error