Tested algo design