portfolio index test. Closes #21.