crud and tests for assets resource