fixing some bugs and adding specflow