Learning to write tests for our javascript