main table attribute version, directive testing code not working