Add cache test.

Delete serial test version.