wrote all TestCases for all Algorithms