Fixed snprintf statements and added extra info to string empty assertion