adding test code for framebuffers (not working yet!)