Added handling of motor collection to model
Added tests for get and delete