adding test code for the PyAlgorithm