Fixed NPE in afterTest
Added test dependencies