add loadData and test methods