refactored wrapview init function and added another test that shows a bug