tests for ex2