Re-enable TestApplyLayer and make it work Upstream-commit: 124da338fd1c238c8b8e76b15db642104eac1b23 Component: engine