Various code tests