- Fixed specs to match the new code.
- Fixed a bug in Test class where it wasn't setting test_type and total correctly.