test for splitting by attribute and importance function