Test some codes