Add 404 test.
Improve Resource creation syntax.