Add unit test (really)

The problem was that I added my code in build/test/js/tests.js, so it was being overridden. Added the unit test in the correct place.