Fixed Failing test causing a Javascript error