Refactored formData variable from queryData and added one TDD function in testing