Shell testing functions