testcases

I haven't used the functions for which these testcases are, so have a look.