added tests for getW(); closes #1