Appcache tests

see #2716 
Tests pass iff 8400e42 is applied.