Layout#keys should not be private.
Group tests by method.
Print errors to STDERR.
Put test into context.
Make ENOENT result in a non-zero exit code.

Add custom matchers for testing exit codes.
Silence stdout and stderr during tests.