Added some test cases and made them use an openGL context to run properly