'with' directive implemented, as well as basic related tests