It should throw error if more than one toValue/toFactory/toImplementation is provided