[ALOY-1216] Add unit tests for PR625/selective compile

https://jira.appcelerator.org/browse/ALOY-1216

Adds unit tests for #625