test valid code