oop in JS tests