Initial App Identity tests.

@alesj, this temporarily has the conditional environment logic until we come up with the general solution.