Here are the completed tests for JModelLegacy.
Great stuff. You can improve the bit where you are testing the exception a little by looking over: http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.exceptions
Also, for extra points you can fix up all the code styling and docblocks, etc to take after: https://github.com/joomla/joomla-platform/blob/staging/tests/suites/unit/joomla/model/JModelDatabaseTest.php
Will do. Also, I'm going to refactor to use fixtures and the setUp() and tearDown() functions, instead of calling JModelLegacy::getInstance() everywhere.
Completing tests for JModelLegacy
cleaning up code styling and refactor code to use fixtures
Merged. Thanks for your contribution!