fixed test cases webnotes/wnframework#351