Fixed unit test and related issues for bug 447996

Signed-off-by: sguan <sguan@actuate.com>
Merge pull request #31 from sguan-actuate/master

Fixed HTML emitter unit test and related issues for bug 447996