change back to mysql dependency and use scope as test

change back to mysql dependency and use scope as test