Fixed unregisterMock function

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>