adds test for subviewDidChange