added metadata factory to config options
test default behaviour
clearified the documentation
Enforcing string cast on metadata factory config key