Added the unit test for stockhandler