small pattern matching fixes, mysql.exs test