Test for the requested layout in all circumstances

After running again into the bug #1934 I’ve started to write a test. The generated file `yo-dawg.html` should contain:

```html
<div class="layout-mock-default">
```

but in contains

```html
<div class="layout-default">
```

I can’t succeed to write a full test. Hope this helps to solve the bug anyway.