Reworked the functional tests a bit to make them use a single resource.