Issues #4, #11: fixing HTML5 API error test bug