Updated models and test for porfolio.js and stock.js