incorrect test conditions fixed