add tests functions