updated tests & new command API