add test OOP for js