add java inheritence test