Better use of compiler APIs.

Unload the unit after finishing the test.