Add regression tests

Plugin is also not completed as in the case of a relation with
DEFAULT or INDEX the WHERE clause of UPDATE and DELETE can be generated
quite easily. This is not done now...