moved test cases from "james.shared".