Add a test for getModels()

Revamp of getModels() modification in #5