test function for wdot