[view][test] got tests.js working, now need to do middle-tests.js. also fixed bitcoin error checking in tests.
[view] [test] [middle] fixed up middle tests for new view layout stuff, also fixed a bug in middle