buffer: refactor the normalize tests to use test data