added tests functions