Reviewed presence and uniqueness test and also added format tests