Added a few tests to AsyncImageDisplay.
Fixed checkstyle errors in the test of gui.
Fixed the checkstyle errors in the tests of gui.