renamed test to test_legacy in order to avoid conflicts when merging
with other branch