add test: some algorithms