move mock server to a separate file
remove redundant code from WC