legal test in constructor