added first js unittest and finished unittests for php