Fix shared Bitmap state in tests.
Merge pull request #716 from square/jw/fix-shared-state

Fix shared Bitmap state in tests.