Renamed the PureAlgorithm to RandomAlgorithm and related tests.