abscracted load_yamls function, added tests