SamBuilder: add constructor test