Tests: Complete tests for all the resources.

Fixes a small error on card patch and also adds tests for all the resources in the library.