added tests for initialize