added common bash functions for testing