Testing Javascript Classes