Added test for ex-1.