added test case for #3, will fix the second test