fixed tests and portfolio notes