add tests for invalid operations