docfixes and better tests for logicals