Adding unit tests to home.spec.js