Fixed tests for portfolio controller