Split tests into individual files. Got rid of globals by converting them to classes.

Review URL: http://codereview.chromium.org/2123013
22 files changed