added tests (regarding #1)