fixes to core based on compliance test results and some new scenarios added to the very simple browser tests