fix modulestore definitions in tests