added example tests, clear function
redo