Fixed requirements indexOf test to not be stupid.