remove caching from get data and get_training data, too confusing

add tests and check coverage