Add in conditions and cors testing.