added basic testing code