add more tests, fix MySQL specific failures