Fixing tests to correctly read views before adding expectations.