added abs into test conditions