test(mainjs) missing test for view behaviour