changed the model function name and made test more meaningful