test_beta_functions modified