Fix issue which caused deep test in BaseAttribute to fail.