finish hamming and preface test