add a bunch of tests and bugfixes for new view options