completed cpp unit test for all figures