finishing parent measurement implicitly finishes child measurements
cleanup
added JUnit tests