added tests to make sure lesser value btw global and local stock is returned
added tests to make surre global and local stocks are in sync