Fixed issue with .and() nesting + chaining, added tests.