Fix tests for mysql, postgres