Added tests for empty flavor ref and image id (ready for review)