test function for wdot

@MajinSaha  I went ahead and created a PR for you