Testing some functions