Add tests for home.js