adding test case for w