add core test with oop