Tests for mettings and fix