added unit test for the figure classes