add some delay for the tests as they constantly failed on sd with phantomjs
update tests using Y.add
Merge pull request #1116 from lzhan/unittest

add some delay for the tests as they constantly failed on sd with phantomjs