added tests. debugging