testing returning algorithm objects