adds test with init list
adds support for init lists
makes constructor private