functional, integration and uni tests: when, what?

If you've never used tests before I would recommend starting with unit
tests. They are a little easier to get your head around and form the
basis for functional and integration tests. Without good unit tests
you'll end up chasing down model bugs in your functional and
integration tests.

Aaron