Refactor: move test programs to tests

Change-Id: I009d56a4cf3e876d19dec2987d3aada76d58e66a
Reviewed-on: http://review.couchbase.org/34339
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>