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

CB-8225: Add Unit Tests for platform.js/add function
- helps prevent regressions to this function
- helps familiarize with cordova