Refactored the second typeannotation test to handle the var not being initialized