Add a test case for ping errors

/to @bajtos 

See https://github.com/strongloop/loopback-datasource-juggler/pull/260