Renamed context.file.referer to context.file.layout
Bugfix: Now passing the context object when rendering layout contents
Updated file-metadata test