fix demo after renaming
add test mock for invalidate
update mocha & phantomjs