updated square test