Corrected logic error while testing customer class and customer type