Done tests for summary task 2. todo: javadoc