fixed tests broken due to final WP_Post class
reset tests to implement gloobal and local stock solution
moved the stock logic to  separate stock object
added tests and base impleementation to allow for local and/or global stock tickets