Added rake tasts for tests and updated requires_approval to only increment versions when approving an object is successful.