Add methods for garden devices controller and add tests for them