test($state): test relative states for is, includes and get