Added unit tests for algorithms.