Change the table name to something that exists in the DB. Select count(*) from table_name on a small table like a lookup table will help.
The test connections can sometimes fail because of driver related problems. They may also fail even if the connection is valid but the table name specified is incorrect.
Are you able to lookup the
JDBC connection ?