mysql tests and some general extensions