Mock of chrome extensions API for unit testing under nodejs