fix testing account checking logic