javascript specific testing challenges