fixed bugs in sparse_bbp_test