Created unit test case for GeneralAlgorithms; Code refactoring; implement using bundle to restore saved state