unified whitespace usage && add test method