Added tests using PowerMock.