minor fix and some mysql adapter tests

In mysql adapter:

Oneliner as suggested in #403 
Several tests for some uncovered code
Renamed existing test for being executed

Thanks