Use `allow` instead of `stub`

Use new syntax for better readability.