Test for new constructors

Signed-off-by: Martin Tange <mktange@gmail.com>