SharesController Test and Investments Refactor