Bug 1004309 - Add func to assert shadowed state is correct. - r=kamidphish