corrections to showPreview & capture in camera api tests during validation