Split out tests into separate classes.

Makes it easier to send single file to bugzilla.