Added tests for algos. All passing.