working portfolio edit tests. Closes #22 and #23.