Add tests for framebuffer. This fixes issue #66