added basic testing functions