Fixed the resource test and made `setup()` more robust
Now more thoroughly testing resources by checking their contents as well.
Added test for compiling twice to catch update errors.