refactor SerTest