added tests for construction