changed some test logic.  Was not testing right on all bash