nearly have tests working on mysql