Added missing model.h and some tests for remotelist