CB-8225: Add Unit Tests for platform.js/add function

CB-8225: Add Unit Tests for platform.js/add function :
- Help prevent regressions to add function
- Get feet wet with cordova development