Test style tweaks
Remove unneeded fn in Resource test
Remove useless set in resource test
Rename docs.list to docs.index
Add Api test