Fix Resource.php and ModelIntegrationTest.php
Improve / fix Memcached backend + add some test methods for it