fixed up modularity tests and small bug in modularity_finetune_und