TDD with javasctipt