Fixed unit test class.

Although doesn't work in gradle for some reason.

Removed unneeded imports.