tests for weighted models