example of some unit testing, deleted old api code - sorry cliff :(