Add resource tests.
Fix some docstrings to conform, style-wise.