added test for constructor and .all