fix regression and add configure tests

                       
| Q             | A   |
| ---           | --- |
| Bug fix?      | y   |
| New feature?  | y   |
| BC breaks?    | n   |
| Deprecations? | n   |
| Tests pass?   | y   |
| Fixed tickets | na  |
| License       | MIT |
| Doc PR        | na  |