Add simple tests for BufferObject

See #1
Currently, one buffer id really leaks.