more functional tests. fixes #194