added basic if tests