Test Javascript TDD