a little refactoring for blog posts and refined the tests for the home controller