Added tests for weight