Added custom routes for stock, writing tests