added minion and tests for it