Testing jQuery functions and commands