Add function to test a portfolio with target return