added test with mockData loading and cleanup