Added afterEach to clear registered mocks

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