Adding the start of some basic automated tests to Bgui. Right now the tests are just trying to check for leaks.