Test some outputs for NULL retrieved from database in rails