Add unit test for str product sample spaces.