Implemented AccountPicker
updated tests. added check for debug flag to enable/disable AccountPicker