Refactor: Move test function into hacks

The test function doesn't belong in home.js,
but it doesn't have a home yet, so put it
in the hacks file.