wrote some tests with the qt test library