added tests around constructor