Modified algorithm and unit tests for BASIS

Added analyser and reflection validation.

Refs #10606