Added code-style tests and the first working mock.