made command decission a function
Added simpletest
Added empty test
Added license AGPL