Added tests for wmbc_mergewmb and corrected expansion bug