Revert assert change. Fixed view name construction, so that it always uses / instead of system specific dir separator.
Fixed test to work on Windows.