Factor out the actual test into a separate method. This paves the way for testing more target spaces [[Imported from SVN: r5512]]