added tests for initializing