Added algorithm tests