Changes recommended by @nviennot

More exact ORM checking for NoBrainer and requiring
active_support/core_ext for the facet tests.