unit test of Algorithm class added