added tests for JS API of tooltip