Change buffer.h #defines to const ints so they can be used in tests