testing framework working on browser and nodejs