tested the functions