Fixed test.

The tearDown method was called before tests were executed instead of after.