access portfolio stock length in tests via stockCount getter