I would like an answer to this, too.
EDIT: Just to add a little bit of extra info: The info provided here about a custom 404 page seems to suggest that if you have a page with the slug /test
then a template /layouts/test.html
should be applied. Sadly this is not the case for me.