Fixed failing console tests. Fixes #520

- check if parent is disposed in ConsoleView
- changed assert in ConsoleViewTest