update algorithm test