fixed some bugs in cucumber tests