fix bug and run the cluster fuctiion with black-box testing