fixed initialization issue on chrome
made testing specs more DRY