Refactor export with queryString and test it with cucumber features. Closes #66