bin/aesenc: fix argument parsing
bin/rmempty: minor changes
add more tests