unit tests for line and rectangle. modifying classes.