Rewrites test for clear handler cache.

See https://github.com/strongloop/loopback/pull/193.