bug 926325 - Refactored test to avoid js errors in test run; r=mikeratcliffe