fix portfolio tests