Some examples on how to test javascript