Read Kent C. Dodds's articles on testing and going to try out a TDD approach.