Hi there,
I edited your post for better readability. Please check how to format posts containing config snippets for future postings.
As for your problem:
What does the executed command line of the check look like?
Have you compared it to what you have tested on the CLI and yielded your desired result?
cheers