Add asserts for constructor parameters