Make sure views are loaded before calling viewWillAppear: in tests.
Removed unused code.
Improved link tests.