add e2e and unit tests for view1 and todo