make clever export a function
switch to shared behavior in test cases
Merge pull request #1 from Clever/function

Function