Added Unit Testing

Unit tests for functions
Merge branch 'master' into Ishin
Added Portfolio E2E Test

More E2E testing stuff
Merge branch 'Ishin'
Merge pull request #36 from YfLn/master

Updating Richard branch from master