changed testing functions