fix tests in PhantomJS
fix tests in PhantomJS

rcarmo/Ink,birthdayalex/Ink,pedrocorreia/Ink,rcarmo/Ink,sapo/Ink,pkdevbox/Ink,mubassirhayat/Ink,pkdevbox/Ink,pedrocorreia/Ink,sapo/Ink,Anmo/Ink,pedrocorreia/Ink,rcarmo/Ink,mubassirhayat/Ink,sapo/Ink,pkdevbox/Ink,birthdayalex/Ink,Anmo/Ink,Anmo/Ink,birthdayalex/Ink