Suggest specifying 'localhost' as host name part of the MySQL test account name. Otherwise, the anonymous user that is usually created by default for 'localhost' would take precedence for local connections due to the more specific host name.