added exists-method to stock module and appropriate tests