Update tests to use default flavor

This patch updates the API tests to use default flavor instead of
a hard coded value, if generate flavor config option is False.

Change-Id: I283f1b19bf96a5a0ede30f472da43104a9b02b10
Merge "Update tests to use default flavor"