Fixed missing Stocktable model tests and added additional methods to
tablemodel clasess