init code tests

by winsvega