Test cases all pass.