bugfix with test
bugfix with test

achernet/sh,rsmith31415/sh,hacosta/python-sh,germangh/sh,twocngdagz/sh,jakirkham/sh,hacosta/python-sh,z-fork/sh,rdhyee/sh,pombredanne/sh,Stupeflix/sh,amoffat/sh,ppannuto/sh,lwgarmstrong/sh,amoffat/sh,pdelong42/sh,simudream/sh