Added some basic tests for StatefulTimer.
Put test cases in their test suites' namespaces.

Sorry about the massive diff. This is a quick fix to avoid name clashes when several test suites are built with a particular runner.