added more tests fo the object-based approach