fix code review and add qunit