add test to prevent registering metadata generators more than once