Make sure that all the custom types have a base of 'object' so the objects still work with 'to have properties' etc.