Added invalid credential test