added more tests to ex-40