added isset check and qunit test
renamed old test