ex 2. tests