Initial checkin of lib/tests/examples

@redonkulus @mridgway