simple api and model tests