added allow tests for insert and update